<?php
class CRedisModel extends CFormModel{
    protected $_redis;
    
    public function init(){
        parent::init();
        $this->_redis = Yii::app()->dbRedis;
    }
    
    public function redis(){
        return $this->_redis;
    }
    
}